package com.u.auth.feign;

import com.u.auth.model.dto.UserFeignDTO;
import com.u.common.api.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: u-social
 * @description: 用户远程调用Service
 * @author: Alex Wu
 * @createDate: 2025-02-17 15:49
 **/
@FeignClient(name = "u-user")
public interface UserFeign {

    @PostMapping("/userInfo/password")
    ApiResponse<UserFeignDTO> getUserByPassword(@RequestParam String username, @RequestParam  String password);
}
